@echo off
REM 设置控制台代码页为UTF-8
chcp 65001 >nul 2>&1

REM 清理控制台
cls

REM 设置Java和Maven环境变量
set JAVA_OPTS=-Dfile.encoding=UTF-8 -Dconsole.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -Dspring.output.ansi.enabled=never
set MAVEN_OPTS=-Dfile.encoding=UTF-8 -Duser.timezone=Asia/Shanghai
set LANG=zh_CN.UTF-8

echo ===================================
echo   PDF Document Converter Service
echo ===================================
echo.
echo 正在启动PDF文档转换器服务...
echo Starting PDF Document Converter...
echo.

mvn spring-boot:run

echo.
echo 服务已停止，按任意键退出...
pause >nul